<html>
<head>
	
</head>
<body>

<? 
	error_reporting(E_ALL);
	require_once "../../commons/includes/authentication.inc"; 	
	require_once "../../commons/includes/connection.inc"; 
	
	print_r($_REQUEST);
	$Codice=$_REQUEST["CentroDiProfitto"];
	
	
	$sql = "DELETE FROM TabCentriProfitto where CentroDiProfitto='$Codice' ";
	
	$res = sqlExecute($sql,"Controllo"); 
	print_r($res);
	echo " $sql	 ";
	
	if($res) {
			
			echo " <script>try{parent.after_delete();}catch(e){}</script>	 ";
	}		
		
?>
	
	
</body>
</html>